package com.hgm.study.model.serice

import com.hgm.study.model.Network
import com.hgm.study.model.entity.ArticleInfoResponse
import com.hgm.study.model.entity.ArticleResponse
import com.hgm.study.model.entity.SwiperResponse
import retrofit2.http.GET
import retrofit2.http.Query


interface ArticleService {


      @GET("article/list")
      suspend fun getArticle(
            @Query("pageOffset") pageOffset: Int,
            @Query("pageSize") pageSize: Int
      ): ArticleResponse

      @GET("article/info")
      suspend fun info(@Query("id") id: String): ArticleInfoResponse

      companion object {
            fun instance(): ArticleService {
                  return Network.createService(ArticleService::class.java)
            }
      }
}